import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

public class Message {
    private Integer mode;
    /**
     * 设备唯一ID
     */
    private String iemi;

    /**
     * 1 标记 是否第一次连接,做一些初始化得操作
     */
    private String isFirstConnect;
    /**
     * 设备ID
     */
    private String devid;

    public Integer getMode() {
        return mode;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }

    public String getIemi() {
        return iemi;
    }

    public void setIemi(String iemi) {
        this.iemi = iemi;
    }

    public String getIsFirstConnect() {
        return isFirstConnect;
    }

    public void setIsFirstConnect(String isFirstConnect) {
        this.isFirstConnect = isFirstConnect;
    }

    public String getDevid() {
        return devid;
    }

    public void setDevid(String devid) {
        this.devid = devid;
    }

    public String toJSON(){
        return JSON.toJSONString(this);
    }
}
